let getters = {
    priceSum(state) {
        let sum = 0
        state.shops.forEach((value) => {
            console.log(value);
            if (value.flag) {
                value.goods.forEach(value => {
                    sum += value.shop_price * value.num
                })
            }
        });
        return sum
    }
}
export default getters